<template>
  <div class="title mt-4 mb-2">
    <div class="left">
      <div class="mr-2 text-[16px]"><slot></slot></div>
      <slot name="left"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<style scoped lang="scss">
.title {
  border-bottom: 1px solid #efefef;
  padding-bottom: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  .left {
    display: flex;
    align-items: center;
  }
  .right {
    margin-left: auto;
  }
}
</style>
